<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@include file="nav.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商城后台管理</title>
</head>
<body>
	<script type="text/javascript">
		var addgood = "<form action='../GoodsServlet?action=add' method='post' role='form'>"
				+ "<table class='table table-bordered table-hover table-condersed'>"
				+ "<tr class='active success info'>"
				+ "<td>商品名称：</td>"
				+ "<td><input type='text' name='gname' class='form-control' style='height: 30px' placeholder='请输入新商品的名称'>"
				+ "</td></tr><tr class='active success info'>"
				+ "<td>商品价格：</td><td>"
				+ "<input type='text' name='price' class='form-control' style='height: 30px' placeholder='请输入新商品的定价'>"
				+ "</td></tr>"
				+ "<tr class='active success info'>"
				+ "<td>商品类别：</td><td>"
				+ "<select name='cid'><c:forEach items='${Categorys }' var='classify'>"
				+ "<option value='${classify.cid}'>${classify.cname}</option>"
				+ "</c:forEach>"
				/* + "<option>adfsa</option>" */
				+ "</select></td></tr>"
				+ "<tr class='active success info'>"
				+ "<td>商品厂商：</td>"
				+ "<td><select name='sid'><c:forEach items='${Suppliers }' var='firm'>"
				+ "<option value='${firm.sid}'>${firm.sname}</option>"
				+ "</c:forEach></select></td></tr>"
				+ "<tr class='active success info'>"
				+ "<td>库存数量：</td>"
				+ "<td><input type='text' name='reserve' class='form-control'style='height: 30px' placeholder='请输入新商品库存数量'>"
				+ "</td></tr>"
				+ "<tr class='active success info'><td colspan=2>"
				+ "<input type='submit' value='写好了，提交' class='btn'>"
				+ "</td></tr></table></form>";
		$("#xyz").html(addgood);
		var navgoods = "<strong class='am-text-danger am-text-lg'>商品信息管理</strong> / <small>GoodsInfo</small>";
		$("#abc").html(navgoods);
	</script>
</body>
</html>